<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Family_Model_Familymember extends WOW_Model_Acl_Abstract
{

    public function getResourceId()
    {
        return 'Familymember';
    }


    public function getMemberById($id)
    {
        $id = (int) $id;
        return $this->getResource('Familymember')->getMemberById($id);
    }

    public function getWholeFamily($userid)
    {
        return $this->getResource('Familymember')->getWholeFamily($userid);
    }

    /**
     *  Returns finds all the relation directly to the user. level 1 relations.
     *
     * @param int $userid
     * @return Zend_Db_Table_Rowet object
     */
    public function getUserFamilyTableData($userid)
    {
        return $this->getResource('Familymember')->getUserFamilyTableData($userid);
    }

    public function save($data)
    {
        return $this->getResource('Familymember')->saveRow($data, null);
    }

    #@ TODO:: needs to be worked on ACL later
    public function setAcl(WOW_Acl_Interface $acl)
    {

    }

    public function getAcl()
    {

    }
}
?>
